FROM debian
ARG Name="ITPlanet"
ENV MyName="ITPlanet"
RUN apt-get update
RUN apt install python3-venv python3-pip
RUN adduser flask
RUN su - flask
RUN mkdir -p flaskapp/templates
RUN cd flaskapp
RUN python3 -m venv virtualenv
RUN source virtualenv/bin/activate
RUN pip3 install flask gunicorn
RUN flask run &
RUN curl http://127.0.0.1:5000
EXPOSE 5000